package com.wkbb.common.enums;

/**
 * @author lizhichao
 * @date 2019/9/4
 * @description
 */
public enum SmartSchoolUserTypeEnum {

    STUDENT(1, "学生"),
    TEACHER(2, "老师"),
    ALUMNUS(4, "校友"),
    RETIREDTEACHER(5, "退休老师"),
    OTHERS(6, "其他");

    private Integer value;
    private String desc;

    private SmartSchoolUserTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        SmartSchoolUserTypeEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            SmartSchoolUserTypeEnum userTypeEnum = var1[var3];
            if (userTypeEnum.getValue() == value) {
                return userTypeEnum.getDesc();
            }
        }

        return null;
    }
}
